package com.example.romancalc.core;


/**
 * @author Luis Oscar Trigueiros
 */
public class RomanNumeralException extends IllegalArgumentException {
	
	/**
	 * 
	 */
	private static final long serialVersionUID = -2082489595910482170L;

	private String illegalRomanNumural;
	
	private String proposition;
	
	
	public RomanNumeralException(String illegalRomanNumural) {
		this.illegalRomanNumural = illegalRomanNumural;
	}
	
	public RomanNumeralException(String illegalRomanNumural, String proposition) {
		this.illegalRomanNumural = illegalRomanNumural;
		this.proposition = proposition;
	}
	
	public String getIllegalRomanNumber () {
		return this.illegalRomanNumural;
	}
	
	public String getProposition () {
		if (!"".equals(this.proposition)) {
			return this.proposition;
		} else {
			return null;
		}
	}
}
